<?php
class UserController extends MemberController {
	public function UserController(){
		parent::MemberController();
	}
	
	public function index(){
		$this->page_title = '用户中心 - ' . $this->site_info['name'];
		if(empty($this->id)){
			$this->id = $this->user['_id'];
		}
		$this->display();
	}
	
	public function user_info(){
		if(empty($this->user)){
			exit;
		}
		echo json_encode($this->user);
	}
}

?>